import { Component, OnInit } from '@angular/core';
import { HttpClient } from '@angular/common/http';
import { GisMapUtils } from 'src/app/base/gis/map/gis.map';

@Component({
  selector: 'layer-list',
  templateUrl: './layer.component.html',
  styleUrls: ['./layer.component.scss']
})
export class LayerComponent implements OnInit {

  maps = new GisMapUtils();
  search: any;
  constructor(public http: HttpClient) {

  }

  ngOnInit() {
    this.maps.init(this.http);
  }

  setMap(m: string) {
    this.maps.setMap(this.http, m);
  }
}
